#include<AT89x52.h>

void Port2_Open()
{
P2=0X0;
}
void Port2_Close()
{
P2=0xFF;
}

void Port2_0_Close()
{
P2_0=1;
}
void Delay()
{unsigned int a;
for(a=65553;a>0;a--){;}
}void paoma()
{int i;
char k[8]={0X7F,0XBF,0XDF,0XEF,0XF7,0XFB,0XFD,0XFE};
Port2_Open();
 Port2_Close();
for(i=0;;i++)
 {
  
 P2=k[i%8];dely();
 

 }
 }
